extends 基础弹窗类


func _ready():
	var close_button = $MarginContainer/VBoxContainer/HBoxContainer3/Button
	close_button.pressed.connect(func():self._close())
	var restart_button = $MarginContainer/VBoxContainer/HBoxContainer3/Button2
	restart_button.pressed.connect(func():self._restart())

func _restart():
	关闭()
	GameCore.restart_game()

func _close():
	get_tree().quit()
	
